const child_process=require('child_process');

for(let i=0;i<3;i++){
    let workerProcess=child_process.spawn('node',['support.js',i]);
    workerProcess.stdout.on('data',data=>console.log(`stdout: ${data}`));
    workerProcess.stderr.on('data',data=>console.log(`stderr: ${data}`));
    workerProcess.on('close',code=>console.log(`Subprocess exit, Exit code ${code}`));
}
